//run.cpp
#include <iostream>
#include "Cat.h"
#include "Dog.h"
#include "Mouse.h"
#include "Pet.h"
using namespace std;
int main() {
    Pet** pets = new Pet*[3];
    pets[0] = new Dog(20, "萨摩耶犬");
    pets[1] = new Cat(2, "英国短毛猫");
    pets[2] = new Mouse(0.04, "仓鼠");
    for (int i = 0; i < 3; i++) {
        cout << pets[i]->getName() << "重" << pets[i]->getWeight() << "kg，";
        pets[i]->Bark();
    }

    return 0;
}